package game.players.cpu.opponent;

import com.uqbar.vainilla.appearances.Sprite;

import game.players.SoccerPlayer;
import game.players.states.BeatenPlayer;

public class BeatenCPUOppPlayer extends BeatenPlayer {

	public BeatenCPUOppPlayer(SoccerPlayer player, boolean isRight) {
		super(player, isRight);
		this.getPlayer().setChasingTheBall(false);
	}

	@Override
	public void finishBeaten() {
		this.getPlayer().setState(new WithoutBallStationaryCPUOpp(this.getPlayer()));
	}

	@Override
	public boolean isWithBall() {
		return false;
	}

	@Override
	public void setRightSprite() {
		this.getPlayer().setAppearance(Sprite.fromImage("/images/goal3_golpeado3.png").scale(1.5).flipHorizontally());
	}

	@Override
	public void setLeftSprite() {
		this.getPlayer().setAppearance(Sprite.fromImage("/images/goal3_golpeado3.png").scale(1.5));
	}

}
